package org.hawk.gwtppc.webtest.tests.fieldsuite;

import org.hawk.gwtppc.webtest.common.Asserts;
import org.hawk.gwtppc.webtest.common.Test;
import org.hawk.gwtppc.webtest.tests.mock.ClassMock;
import org.hawk.gwtppc.webtest.tests.mock.EnumMock;
import org.hawk.gwtppc.webtest.tests.mock.GenericClassMock;
import org.hawk.gwtppc.webtest.tests.mock.SubClassMock1;

public class GetTypeTest implements Test {

	public void run() throws Throwable {
		Asserts.assertEquals(SubClassMock1.class.getDeclaredField("serialVersionUID").getType(), long.class);
		Asserts.assertEquals(SubClassMock1.class.getDeclaredField("staticString").getType(), String.class);
		Asserts.assertEquals(SubClassMock1.class.getDeclaredField("parent").getType(), ClassMock.class);
		Asserts.assertEquals(SubClassMock1.class.getDeclaredField("flag").getType(), boolean.class);
		Asserts.assertEquals(EnumMock.class.getField("ALPHA").getType(), EnumMock.class);
		Asserts.assertEquals(GenericClassMock.class.getDeclaredField("genericField").getType(), Object.class);
	}

	public String getName() {
		return "getType()";
	}

}
